#include <stdio.h>
#include<iostream>
using namespace std;
enum CPU_Rank
{
	P1 = 1, P2, P3, P4, P5, P6, P7
};
class CPU
{
private:
	int rank, frequency;
	double voltage;
public:
	CPU();
	void Run();
	void Stop();
	void Get()
	{
		cout << "rank=" << rank << " frequency=" << frequency << " voltage=" << voltage << endl;
	}
	~CPU();
};
CPU::CPU()
	:rank(P1),frequency(1000),voltage(220.5)
{
	cout << "Construct CPU!" << endl;
}
void CPU::Run()
{
	cout << "CPU Run!" << endl;
}
void CPU::Stop()
{
	cout << "CPU Stop!" << endl;
	rank = P5;
	voltage = 220.4;
}
CPU::~CPU()
{
	cout << "rank=" << rank << " frequency=" << frequency << " voltage=" << voltage << endl;

	cout << "Destruct CPU!";
}
int main()
{
	class CPU c;
	c.Get();
	c.Run();
	c.Stop();
}